use webrtc::{
    ice_transport::ice_server::RTCIceServer, peer_connection::configuration::RTCConfiguration,
};

pub fn get_webrtc_config() -> anyhow::Result<RTCConfiguration> {
    let config = RTCConfiguration {
        ice_servers: vec![RTCIceServer {
            urls: vec![
                "stun:39.106.1.82:3478".to_owned(),
                "stun:stun.l.google.com:19302".to_owned(),
            ],
            ..Default::default()
        }],
        ..Default::default()
    };

    Ok(config)
}
